<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <title></title>
</head>

<body>
  <img src="" id='img' alt="">
  <button onclick="FileSelection.openFiles({

     accept:'image/*',
     })">打开文件选择</button>

  <button onclick="FileSelection.releasePreview()">释放预览</button>
</body>
<script src="./index.ts"></script>

</html>